import type { MockMethod } from 'vite-plugin-mock'
// import Mock from 'mockjs'

const mock: MockMethod[] = [
    {
        url: '/geek-admin/user/login',
        method: 'post',
        response: (config: any) => {
            return {
                code: 200,
                data: {
                    username: config.name,
                    token: `${Date.now()}_token`
                }
            }
        }
    }
]

export default mock